package com.pig4cloud.pigx.strategy.dto;

import com.pig4cloud.pigx.strategy.bo.StrategyContractOrderParam;
import lombok.Data;

/**
 * 同步订单信息DTO
 *
 * @since 2022/11/29 17:16
 */
@Data
public class StrategySyncOrderMsgDTO<T> extends StrategyContractOrderParam {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 第三方订单id
     */
    private Long externalOrderId;

    /**
     * 开关id
     */
    private Long switchId;

    /**
     * 是否是http异常的订单
     */
    private Boolean isHttpError = false;

    /**
     * 是否是止盈止损触发的订单
     */
    private Boolean isStopOrder = false;

    /**
     * 当前订单下单参数
     */
    private T thisOrderBO;

    /**
     * 后续订单下单参数
     */
    private T nextOrderBO;
}
